/// currentTime : 1629273979058
/// data : [{"createTime":1628761350,"groupId":"6114ed066f557b25610f59e3","groupName":"家人","userId":10000004,"userIdList":["as","a"]},{"createTime":1628761350,"groupId":"6114ed066f557b25610f59e5","groupName":"同事","userId":10000004,"userIdList":[]},{"createTime":1629272855,"groupId":"611cbb1717e67b0daaa5421a","groupName":"hhhhh","userId":10000004,"userIdList":[]},{"createTime":1629273300,"groupId":"611cbcd417e67b0daaa5421b","groupName":"啊呀租","userId":10000004,"userIdList":[]},{"createTime":1629273477,"groupId":"611cbd8517e67b0daaa5421c","groupName":"tu d","userId":10000004,"userIdList":[]}]
/// resultCode : 1

class TitleList {
  int currentTime;
  List<Data> data;
  int resultCode;

  TitleList({this.currentTime, this.data, this.resultCode});

  TitleList.fromJson(dynamic json) {
    currentTime = json["currentTime"];
    if (json["data"] != null) {
      data = [];
      json["data"].forEach((v) {
        data.add(Data.fromJson(v));
      });
    }
    resultCode = json["resultCode"];
  }

  Map<String, dynamic> toJson() {
    var map = <String, dynamic>{};
    map["currentTime"] = currentTime;
    if (data != null) {
      map["data"] = data.map((v) => v.toJson()).toList();
    }
    map["resultCode"] = resultCode;
    return map;
  }
}

/// createTime : 1628761350
/// groupId : "6114ed066f557b25610f59e3"
/// groupName : "家人"
/// userId : 10000004
/// userIdList : ["as","a"]

class Data {
  int createTime;
  String groupId;
  String groupName;
  int userId;
  List<String> userIdList;

  Data(
      {this.createTime,
      this.groupId,
      this.groupName,
      this.userId,
      this.userIdList});

  Data.fromJson(dynamic json) {
    createTime = json["createTime"];
    groupId = json["groupId"];
    groupName = json["groupName"];
    userId = json["userId"];
    userIdList =
        json["userIdList"] != null ? json["userIdList"].cast<String>() : [];
  }

  Map<String, dynamic> toJson() {
    var map = <String, dynamic>{};
    map["createTime"] = createTime;
    map["groupId"] = groupId;
    map["groupName"] = groupName;
    map["userId"] = userId;
    map["userIdList"] = userIdList;
    return map;
  }
}
